package com.quarters.bean;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author 冯政尚
 * @since 2019-09-03
 */
@ApiModel(value="RoleQuarters对象", description="")
public class RoleQuarters extends Model<RoleQuarters> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Long id;

    @ApiModelProperty(value = "小区id")
    @TableField("quarters_id")
    private Long quartersId;

    @ApiModelProperty(value = "角色id")
    @TableField("role_id")
    private Long roleId;

    @ApiModelProperty(value = "标识")
    @TableField("flage")
    private Integer flage;


    public Integer getFlage() {
        return flage;
    }

    public void setFlage(Integer flage) {
        this.flage = flage;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getQuartersId() {
        return quartersId;
    }

    public void setQuartersId(Long quartersId) {
        this.quartersId = quartersId;
    }
    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "RoleQuarters{" +
        "id=" + id +
        ", quartersId=" + quartersId +
        ", roleId=" + roleId +
        ", flage=" + flage +
        "}";
    }
}
